import { createStore, applyMiddleware } from 'redux';
// 导入redux-thunk异步插件
import thunk from 'redux-thunk';
// 导入redux-devtools-extensoin
import { composeWithDevTools } from 'redux-devtools-extension'
import reducers from './reducers';
// createStore作用: 创建一个仓储对象
const store=createStore(reducers,composeWithDevTools(applyMiddleware(thunk)));
export default store;
